docs(writing-plans): add context gathering guidelines#935
Open
StrangeXin wants to merge 1 commit intoobra:mainfrom
Open
docs(writing-plans): add context gathering guidelines#935StrangeXin wants to merge 1 commit intoobra:mainfrom
StrangeXin wants to merge 1 commit intoobra:mainfrom
Conversation
…-exploration Without explicit boundaries, agents tend to launch broad codebase exploration (multiple Explore agents, reading dozens of files) before writing a plan. This wastes context window and delays plan writing. Add a "Context Gathering" section with clear guidance: read the spec + only directly relevant files, avoid broad exploration, cap at ~5 targeted reads. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
writing-plansskill tells the agent to "document everything they need to know" and "map out which files will be created or modified," but provides no guidance on how much context to gather before writing the plan.In practice, this causes agents to over-explore: launching multiple broad codebase exploration agents (e.g., full backend + frontend scans consuming 130k+ tokens), reading dozens of unrelated files, and listing entire directories — all before writing a single line of the plan. This wastes significant context window and delays plan creation.
Solution
Add a "Context Gathering" section before "File Structure" with explicit boundaries:
Key insight
The skill's job is to write a plan that documents what the implementer needs — it doesn't require the planner to have read the entire codebase first. Targeted reads of the spec + directly relevant files provide sufficient context for accurate plan writing.
🤖 Generated with Claude Code